<%--
  Created by IntelliJ IDEA.
  User: crowndint
  Date: 2018/8/24
  Time: 22:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Restful</title>
</head>
<body>

    <!-- 保存 -->
    <form action="testRestful" method="post">
        用户名称： <input type="text" name="uname"><br/>
        <!-- <input type="hidden" name="_method" value="POST"> -->
        <input type="submit" value="保存">
    </form>
    <hr/>
    <!-- 更新 -->
    <form action="testRestful/1" method="post">
        用户名称： <input type="text" name="uname"><br/>
        <input type="hidden" name="_method" value="PUT">
        <input type="submit" value="更新">
    </form>

    <hr/>
    <!-- 删除 -->
    <form action="testRestful/1" method="post">
        <input type="hidden" name="_method" value="DELETE">
        <input type="submit" value="删除">
    </form>
    <hr/>
    <!-- 查询一个 -->
    <form action="testRestful/1" method="post">
        <input type="hidden" name="_method" value="GET">
        <input type="submit" value="查询">
    </form>

</body>
</html>
